import {ref,onMounted} from 'vue'
import { getBanner } from '@/apis/home/home'

export function useBannerList() {
    //获取Banner
    const bannerList = ref([])
    onMounted(async () => {
        const res = await getBanner()
        bannerList.value = res.result
    })
    return{
        bannerList
    }
}